<template>
  <div class="banners">
    <div class="contain">
      <div class="left_banners">
        <ul>
          <li>
            <a href="#">功能测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">自动化测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">接口测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">性能测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">app测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">安全测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">测试管理 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">测试开发 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">大数据测试 <i class="el-icon-arrow-right"></i></a>
          </li>
          <li>
            <a href="#">python+人工智能 <i class="el-icon-arrow-right"></i></a>
          </li>
        </ul>
      </div>
      <el-carousel trigger="click" height="320px">
        <el-carousel-item v-for="item in bannerArr" :key="item">
          <img :src="item" alt="" />
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from "vue-property-decorator";
// import HelloWorld from "@/components/HelloWorld.vue"; // @ is an alias to /src

@Component({
  components: {
    // HelloWorld
  }
})
export default class Banners extends Vue {
  private imgUrl1 = require("../../../assets/低学历学习.png");
  private imgUrl2 = require("../../../assets/技术论坛-全站式测试工程师.png");
  private imgUrl3 = require("../../../assets/java培训.png");
  private bannerArr: Array<string> = [this.imgUrl1, this.imgUrl2, this.imgUrl3];
}
</script>
<style lang="scss">
.banners {
  // margin-top: 14px;
  .contain {
    display: flex;
    .left_banners {
      width: 232px;
      ul {
        background: #222;
        li {
          padding: 2px 0;
          &:hover {
            background: rgba($color: #000000, $alpha: 0.5);
          }
          a {
            line-height: 28px;
            display: block;
            color: #fff;
            height: 28px;
            padding: 0 25px;
            position: relative;
            left: 0;
            font-size: 14px;
          }
          i {
            float: right;
            line-height: 28px;
          }
        }
      }
    }
    .el-carousel {
      height: 320px;
      width: 968px;
      img {
        width: 968px;
        height: 320px;
      }
    }
  }
}
</style>
